package com.jfs.qy.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpMethod;

/**
 * @Description API接口枚举
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/4
 */
@Getter
@AllArgsConstructor
public enum NvrApiEnum {
    /**
     * 登录接口
     */
    LOGIN("/API/Web/Login", "登录接口", HttpMethod.POST),
    /**
     * 心跳包
     */
    HEARTBEAT("/API/Login/Heartbeat", "心跳包", HttpMethod.POST),
    /**
     * 添加人脸图片到摄像头库
     */
    FACES_ADD("/API/AI/Faces/Add", "添加人脸图片到摄像头库", HttpMethod.POST),
    /**
     * 名单库目标查询
     */
    FACES_SEARCH("/API/AI/AddedFaces/Search", "名单库目标查询", HttpMethod.POST),
    /**
     * 分页获取名单库目标信息
     */
    FACES_GETBYINDEX("/API/AI/AddedFaces/GetByIndex", "分页获取名单库目标信息", HttpMethod.POST),
    /**
     * 修改目标信息
     */
    FACES_MODIFY("/API/AI/Faces/Modify", "修改目标信息", HttpMethod.POST),
    /**
     * 删除目标信息
     */
    FACES_REMOVE("/API/AI/Faces/Remove", "删除目标信息", HttpMethod.POST),
    /**
     * 回放Rtsp流
     */
    PLAYBAC_RTSPK_URL("/API/Playback/PlaybacRtspkUrl/Get", "获取回放RTSP流的URL", HttpMethod.POST),
    /**
     * RTSP预览流
     */
    LIVE_BROAD_CAST("/API/Preview/GetRtspUrl/Get", "RTSP预览流", HttpMethod.POST),
    /**
     * 获取通道信息参数
     */
    CHANNEL_LIST("/API/SystemInfo/Channel/Get", "获取通道信息参数", HttpMethod.POST),
    /**
     * 目标组参数查询
     */
    FDGROUP_GET("/API/AI/FDGroup/Get", "目标组参数查询", HttpMethod.POST),
    /**
     * 获取服务器事件推送消息
     */
    EVENT_CHECK("/API/Event/Check", "获取服务器事件推送消息", HttpMethod.POST),
    /**
     * 获取系统信息参数
     */
    SYSTEM_INFO("/API/SystemInfo/Base/Get", "获取系统信息参数", HttpMethod.POST),
    /**
     * 获取当前nvr IPC信息
     */
    CHANNEL_INFO("/API/IPCMaintaint/IPCReboot/Get", "获取当前nvr IPC信息", HttpMethod.POST),
    /**
     * 退出登录
     */
    LOGOUT("/API/Web/Logout", "退出登录", HttpMethod.POST);
    /**
     * 接口url路径
     */
    private final String url;
    /**
     * 作用
     */
    private final String notes;
    /**
     * 方法
     */
    private final HttpMethod method;
}
